package com.vibration.baseinfo.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.vibration.common.annotation.Excel;
import com.vibration.common.core.domain.BaseEntity;

/**
 * 物联网卡对象 cz_card
 * 
 * @author Mr_Wu
 * @date 2023-01-31
 */
public class CzCard extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  编号 */
    private Long id;

    /** iccid */
    @Excel(name = "iccid")
    private String iccid;


    private String operatorName;

    /** 总流量 */
    @Excel(name = "总流量")
    private String flowRate;

    /** 使用流量 */
    @Excel(name = "使用流量")
    private Double useFlow;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer useUnit;

    /** 剩余流量 */
    @Excel(name = "剩余流量")
    private Double surplusFlow;

    /** 0 MB  1GB */
    @Excel(name = "0 MB  1GB")
    private Integer surplusUnit;

    /** 激活日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "激活日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date activationTime;

    /** 到期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "到期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 物联网卡状态 */
    @Excel(name = "物联网卡状态")
    private Integer cardStatus;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 设备id */
    @Excel(name = "设备id")
    private Long equipmentId;
    private Integer warnStatus;

    private String equipmentName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setIccid(String iccid) 
    {
        this.iccid = iccid;
    }

    public String getIccid() 
    {
        return iccid;
    }

    public String getOperatorName() {
        return operatorName;
    }

    public void setOperatorName(String operatorName) {
        this.operatorName = operatorName;
    }

    public void setFlowRate(String flowRate)
    {
        this.flowRate = flowRate;
    }

    public String getFlowRate() 
    {
        return flowRate;
    }
    public void setUseFlow(Double useFlow)
    {
        this.useFlow = useFlow;
    }

    public Double getUseFlow()
    {
        return useFlow;
    }
    public void setUseUnit(Integer useUnit) 
    {
        this.useUnit = useUnit;
    }

    public Integer getUseUnit() 
    {
        return useUnit;
    }
    public void setSurplusFlow(Double surplusFlow)
    {
        this.surplusFlow = surplusFlow;
    }

    public Double getSurplusFlow()
    {
        return surplusFlow;
    }
    public void setSurplusUnit(Integer surplusUnit) 
    {
        this.surplusUnit = surplusUnit;
    }

    public Integer getSurplusUnit() 
    {
        return surplusUnit;
    }
    public void setActivationTime(Date activationTime) 
    {
        this.activationTime = activationTime;
    }

    public Date getActivationTime() 
    {
        return activationTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setCardStatus(Integer cardStatus) 
    {
        this.cardStatus = cardStatus;
    }

    public Integer getCardStatus() 
    {
        return cardStatus;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setEquipmentId(Long equipmentId) 
    {
        this.equipmentId = equipmentId;
    }

    public Long getEquipmentId() 
    {
        return equipmentId;
    }

    public Integer getWarnStatus() {
        return warnStatus;
    }

    public void setWarnStatus(Integer warnStatus) {
        this.warnStatus = warnStatus;
    }

    public String getEquipmentName() {
        return equipmentName;
    }

    public void setEquipmentName(String equipmentName) {
        this.equipmentName = equipmentName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("iccid", getIccid())
            .append("flowRate", getFlowRate())
            .append("useFlow", getUseFlow())
            .append("useUnit", getUseUnit())
            .append("surplusFlow", getSurplusFlow())
            .append("surplusUnit", getSurplusUnit())
            .append("activationTime", getActivationTime())
            .append("endTime", getEndTime())
            .append("cardStatus", getCardStatus())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .append("equipmentId", getEquipmentId())
            .toString();
    }
}
